<?php

use NoahBuscher\Macaw\Macaw;


Macaw::get('/', function() {
    echo 'Hello world!';
});

Macaw::get('fuck', function() {
    echo "成功！";
});

Macaw::get('home', 'app\controllers\HomeController@home');
// Macaw::get('dbFirst', 'App\controllers\HomeController@dbFirst');
// Macaw::get('home', 'HomeController@home');
// Macaw::get('dbFirst', 'HomeController@dbFirst');

Macaw::get('(:all)', function($fu) {
    echo '未匹配到路由<br>'.$fu;
});

Macaw::dispatch();

